home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- set -e
-
- action=$1
- version=$2
-
- if [ "$action" = configure ]; then
- . /usr/share/debconf/confmodule
- db_version 2.0
-
- if ! test -f /etc/default/ferm || ! grep -q ^ENABLED= /etc/default/ferm; then
- # copy the enabled flag from debconf to /etc/default/ferm
-
- db_get ferm/enable
- if [ "$RET" = "false" ]; then
- VALUE="no"
- else
- VALUE="yes"
- fi
-
- {
- echo
- echo "# Enable the ferm init script? (i.e. run on bootup)"
- echo "ENABLED=$VALUE"
- } >> /etc/default/ferm
- fi
-
- # make the firewall configuration readable only by root and group adm
- if [ -d /etc/ferm ]; then
- chown -R root:adm /etc/ferm
- chmod 2750 /etc/ferm
- fi
- fi
-
- # Automatically added by dh_installinit
- if [ -x "/etc/init.d/ferm" ]; then
- update-rc.d ferm start 41 S . start 36 0 6 . >/dev/null
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d ferm start || exit $?
- else
- /etc/init.d/ferm start || exit $?
- fi
- fi
- # End automatically added section
-
-